package com.cloud.entity.mes;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 维修管理(MesQmRepair)实体类
 *
 * @author yzy
 * @since 2021-06-17 15:04:54
 */
@Data
@Entity
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "mes_qm_repair")
public class MesQmRepair implements Serializable {
    private static final long serialVersionUID = 598826926360224672L;

    @Id
    @Column(name = "id")
    @ApiModelProperty(value = "id")
    private String id;

    //工厂id
    @Column(name = "factory_id")
    @ApiModelProperty(value = "工厂id")
    private String factoryId;

    //维修单号
    @Column(name = "code")
    @ApiModelProperty(value = "维修单号")
    private String code;

    //工单号
    @Column(name = "task_code")
    @ApiModelProperty(value = "工单号")
    private String taskCode;

    //物料id
    @Column(name = "product_id")
    @ApiModelProperty(value = "物料id")
    private String productId;

    //物料编码
    @Column(name = "product_code")
    @ApiModelProperty(value = "物料编码")
    private String productCode;

    //物料机型
    @Column(name = "product_model")
    @ApiModelProperty(value = "物料机型")
    private String productModel;

    //工单达成量
    @Column(name = "reach_amount")
    @ApiModelProperty(value = "工单达成量")
    private Integer reachAmount;

    //维修台数
    @Column(name = "repair_amount")
    @ApiModelProperty(value = "维修台数")
    private Integer repairAmount;

    //创建时间
    @Column(name = "cd_time")
    @ApiModelProperty(value = "创建时间")
    private Date cdTime;

    //创建人id
    @Column(name = "cd_userid")
    @ApiModelProperty(value = "创建人id")
    private String cdUserid;

    //修改时间
    @Column(name = "md_time")
    @ApiModelProperty(value = "修改时间")
    private Date mdTime;

    //修改人id
    @Column(name = "md_userid")
    @ApiModelProperty(value = "修改人id")
    private String mdUserid;

    //删除标识0否1是
    @Column(name = "deleted")
    @ApiModelProperty(value = "删除标识0否1是")
    private Integer deleted;

    //创建人名称
    @Column(name = "cdusername")
    @ApiModelProperty(value = "创建人名称")
    private String cdusername;

    //修改人名称
    @Column(name = "mdusername")
    @ApiModelProperty(value = "修改人名称")
    private String mdusername;


}
